package chenbi.renthouse.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class House {
    /**
     * 主键
     */
    private Long id;


    /**
     * 房屋编号
     */
    private String houseaccount;

    /**
     * 标题
     */
    private String title;

    /**
     * 房屋所在城市
     */
    private String city;

    /**
     * 房屋详细地址
     */
    private String housesite;

    /**
     * 租赁方式（0-整租，1-合租）
     */
    private Integer mode;

    /**
     * 房租
     */
    private Integer money;

    /**
     * 所在楼层
     */
    private Integer floor;

    /**
     * 整栋楼有几层
     */
    private Integer allfloor;

    /**
     * 厕所数量
     */
    private Integer toilet;

    /**
     * 厨房数量
     */
    private Integer kitchen;

    /**
     * 客厅数量
     */
    private Integer living;

    /**
     * 卧室数量
     */
    private Integer bedroom;

    /**
     * 房屋面积
     */
    private Integer area;

    /**
     * 是否有电梯（有-1；无-0）
     */
    private Integer elevator;

    /**
     * 详情
     */
    private String content;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createtime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHouseaccount() {
        return houseaccount;
    }

    public void setHouseaccount(String houseaccount) {
        this.houseaccount = houseaccount;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getHousesite() {
        return housesite;
    }

    public void setHousesite(String housesite) {
        this.housesite = housesite;
    }

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public Integer getAllfloor() {
        return allfloor;
    }

    public void setAllfloor(Integer allfloor) {
        this.allfloor = allfloor;
    }

    public Integer getToilet() {
        return toilet;
    }

    public void setToilet(Integer toilet) {
        this.toilet = toilet;
    }

    public Integer getKitchen() {
        return kitchen;
    }

    public void setKitchen(Integer kitchen) {
        this.kitchen = kitchen;
    }

    public Integer getLiving() {
        return living;
    }

    public void setLiving(Integer living) {
        this.living = living;
    }

    public Integer getBedroom() {
        return bedroom;
    }

    public void setBedroom(Integer bedroom) {
        this.bedroom = bedroom;
    }

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }

    public Integer getElevator() {
        return elevator;
    }

    public void setElevator(Integer elevator) {
        this.elevator = elevator;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

}
